/**
 *  types.h - Define some const variables or types.
 *
 *  Copyright (C) 2008-2009 ZhangHu
 *  All rights reserved.
 *  E-MAIL: anmnmnly@gmail.com
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */


#ifndef __TYPES_H__
#define __TYPES_H__

// Control whether unit debug is on or not
//#define UNIT_DEBUG

#ifndef UNIT_DEBUG
#include "cpu.h"
#else
#include <stdlib.h>
#define byte_t   signed char
#define ubyte_t  unsigned char
#define word_t   signed int
#define uword_t  unsigned int
#define sword_t  signed short
#define usword_t unsigned short
#define lword_t  signed long
#define ulword_t unsigned long
#define char_t   char
#define uchar_t  unsigned char
#define double_t double
#define float_t  float
#define bool_t   unsigned char


#define loff_t ulword_t

#endif



#ifndef NULL
#define NULL ((void *)0)
#endif

#ifndef TRUE
#define TRUE  1
#endif

#ifndef FALSE
#define FALSE 0
#endif

#endif /* __TYPES_H__ */

